﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Office = Microsoft.Office.Core;

namespace SharePointListSync.Actions
{
    public partial class ACHeader : UserControl
    {
        public ACHeader()
        {
            InitializeComponent();
        }

        private void connection_Click(object sender, EventArgs e)
        {
            Globals.ThisWorkbook.mACBody.mACconnMgr.Visible = true;
            Globals.ThisWorkbook.mACBody.mACListSelector.Visible = false;
            Globals.ThisWorkbook.mACBody.mACListSync.Visible = false; 
        }

        private void Selection_Click(object sender, EventArgs e)
        {
            Globals.ThisWorkbook.mACBody.mACconnMgr.Visible = false;
            Globals.ThisWorkbook.mACBody.mACListSelector.Visible = true;
            Globals.ThisWorkbook.mACBody.mACListSync.Visible = false;

            Globals.ThisWorkbook.mACBody.mACListSelector.hlp_ToggelGroupBox(true);
        }

        private void Sync_Click(object sender, EventArgs e)
        {

            Globals.ThisWorkbook.mACBody.mACconnMgr.Visible = false;
            Globals.ThisWorkbook.mACBody.mACListSelector.Visible = false;
            Globals.ThisWorkbook.mACBody.mACListSync.Visible =true ;
        }
    }
}
